import instance from '@/utils/request'
import type { IResponse } from '@/types/home'

// tab分类数据
export const CategoryList = ():Promise<IResponse> => {
    return instance({
        method:'get',
        url:'/api/category'
    })
}

// 轮播图数据
export const BannerList = ():Promise<IResponse> =>{
    return instance({
        method:'get',
        url:'/api/banner'
    })
}

// 商品列表数据
export const getGoods = ():Promise<IResponse>=>{
    return instance({
        method:'get',
        url:'/api/shop'
    })
}